import globalData from '@/assets/js/common'
import { getThemeActivityById } from '@/api/box/theme'
export const themeMixin = {
  data () {
    return {
      brandsList: [
        { name: 'JNBY', value: '2' },
        { name: 'LESS', value: '5' },
        { name: 'CROQUIS', value: '3' },
        { name: 'A PERSONAL NOTE 73', value: '57' }
      ]
    }
  },
  methods: {
    headerBack () {
      this.$router.back()
    },
    // 上传图片
    getUploadParams () {
      return { ...globalData.uploadParams }
    },
    // 获取活动详情
    fetchThemeActivityById (id) {
      let params = {
        requestData: {
          id: id
        }
      }
      return getThemeActivityById(params).then(res => {
        return res
      })

    }
  },
}